namespace UniversalAdminSystem.Domian.Core.ValueObjects;

public record UserId
{
    public Guid Value { get; init; }

    public static UserId Create(Guid id)
    {
        return new UserId{ Value = id };
    }

    public static explicit operator UserId(Guid id) => Create(id);
    public static implicit operator Guid(UserId userId) => userId.Value;
}